package conf

/**
 * 路由配置文件
 */

import (
	"svntool/system/routers"
	"svntool/application/controllers"
	"svntool/application/controllers/users"
	"svntool/application/models/user"
	"github.com/astaxie/beego"
)

/**
 * 路由和过滤器的配置文件
 */

var Router_arr = []routers.RouterStruct{
	{routers.MY_Route, &controllers.MainController{}, "/", "get:Reglogin"},
	{routers.MY_Route, &controllers.MainController{}, "/main", "get:Dashboard"},
	{routers.MY_Auto_Route, &users.AccountController{}, "", ""},
	{routers.MY_Auto_Route, &users.UserController{}, "", ""},
}

var Filter_arr = []routers.FilterStruct{
	{"/main", beego.BeforeRouter, user.FilterUser},
	{"/user/*", beego.BeforeRouter, user.FilterUser},
}
